<template>
<div>
	<themeHeader></themeHeader>
	<div class="searchlink" v-for="item in cardsList">
		<iframe id="ifm" width="100%" frameborder="0" v-bind:src="item.href"></iframe>
	</div>
</div>
</template>
<script type="text/javascript">
	import ThemeHeader from "./../home/component/themeHeader.vue";
	export default{
		data(){
			return{
				cardsList:{}
			}
		},
		components:{
			ThemeHeader
		},
		methods:{
			// function test(){
			
			// }
		},
		mounted(){
			var link = localStorage.getItem("conLink");
			console.log(link);
			var _this=this;
			$.ajax({
				type:"get",
				url:"http://localhost:8088/shop2/searchp.php",
				data:{type:"link",link:link},
				dataType:"json",
				success:function(data){
					console.log(data);
					_this.cardsList=data.data;
				}
			})
		}
	}
</script>
<style type="text/css">
	iframe{
		position: absolute;
		height: 100rem;
		top: 2.5rem;
	}
	.searchlink .article-two .title2{
		bottom: 0;
	}
</style>